package es.deusto.ingenieria.sd.tralala.server.data;

import java.util.ArrayList;
import java.util.List;

import es.deusto.ingenieria.sd.tralala.server.remote.IPlayable;
/*
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.Join;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
*/
//@PersistenceCapable
public class Song implements IPlayable {
	//@PrimaryKey
	//@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private int id;
	private String title;
	private String duration;
	private double price;
	private double playcount;

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public double getPlaycount() {
		return playcount;
	}

	public void setPlaycount(double playcount) {
		this.playcount = playcount;
	}

	public java.util.List<Play> getPlayS() {
		return playS;
	}

	public void setPlayS(java.util.List<Play> playS) {
		this.playS = playS;
	}

	//@Join
	private java.util.List<Play> playS = new ArrayList<Play>();

	public Song(int id, String title, String duration, double price) {
		super();
		this.id = id;
		this.title = title;
		this.duration = duration;
		this.price = price;
	}

	public Song(String title, String duration, double price, List<Play> playS) {
		super();
		this.title = title;
		this.duration = duration;
		this.price = price;
		this.playS = playS;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDuration() {
		return duration;
	}

	public void setDuration(String duration) {
		this.duration = duration;
	}

}
